|
Book details / order |
GETTING STARTED WITH HTML5 WEBSOCKET PROGRAMMING DEVELOP AND DEPLOY YOUR FIRST SECURE AND SCALABLE REAL-TIME WEB APPLICATION |
What you will learn from this book
understand the concepts of the websocket api and why it is superior to the existing techniques
implement a websocket client that will connect to a remote server and transmit messages to other clients
configure a websocket server using your existing skills and knowledge
implement native websocket clients for mobile and tablet devices
support older browsers that do not support html5 websockets
in detail
websockets are capable of bi-directional, full-duplex communication over a persistent tcp connection they provide many benefits compared to the alternatives (for example, long-polling or comet), such as lower overhead, persistent connections, and low latency. in short, it is the most technically challenging html5 feature to implement, but for truly interactive websites, it's a technology worth learning.
getting started with html5 websocket programming gives you the true power of bi-directional communication, implemented by using the brand new html5 websocket api. you’ll learn how to configure the server and clients, how to transmit different types of data and how to secure the whole system.
this book will introduce you to the websocket world. we start by introducing the websocket api, and continue with practical, real-world examples until we can determine how to build multi-functional web apps for any type of device.
you will learn how to configure a web client and a web server that will help you send messages to others using easy-to-use mechanisms. we will also find out how different data types, such as images and videos, can be transferred with little effort. we present additional fallback techniques and solutions for older browsers too. finally, we will secure our clients from malicious attacks and other threats.
approach
getting started with html5 websocket programming takes a tutorial-based approach.
who this book is for
this book is for anyone who wants to build high-performance, true, real-time web applications. being familiar with frontend web development (html / xhtml, javascript) would be ideal.
about the author
vangos pterneas is a software engineer, passionate about natural user interfaces and modern innovative technologies. he loves developing smart clients for the web and mobile devices. his professional experience includes ios, windows, kinect, and html5 development for small and large-scale systems.
vangos has worked as a software engineer and consultant for microsoft innovation center, where he participated in eu research projects and carried out numerous technical presentations and workshops. he is now running his own company, lightbuzz software, introducing new concepts and software to the public. lightbuzz applications have won the first place in microsoft's worldwide innovation competition, held in new york, and also the first place in tedx's rising stars program.
apart from this book, vangos has reviewed augmented reality with kinect, published by packt publishing.
when vangos is not coding, he loves blogging about technical staff and providing the community with open-source utilities (http://lightbuzz.com)
preface
chapter 1: websocket – a handshake!
life before websocket
polling
long polling
streaming
postback and ajax
then came html5
the websocket protocol
the url
browser support
who's using websockets
mobile?
the future is now
what are we going to make?
summary
chapter 2: the websocket api
html5 basics
markup
styling
logic
a chatting application
api overview
browser support
the websocket object
events
onopen
onmessage
onclose
onerror
actions
send()
close()
properties
the complete example
index.html
chat.js
what about the server?
summary
chapter 3: configuring the server
why do i need a websocket server?
setting up the server
selecting the technology that suits you
c/c++
java
.net
php
python
ruby
javascript
setting up the development environment
connecting to the web server
creating the websocket server instance
open
close
message
send
other methods
the complete source code
summary
chapter 4: data transfer – sending, receiving, and decoding
what kinds of data can websockets transfer?
string
json
xml
arraybuffer
blobs
video streaming
putting it all together
sending the nickname and message using json
sending images to the server
summary
chapter 5: security
websocket headers
common attacks
denial of service
man-in-the-middle
xss
websocket native defence mechanisms
ssh/tls
client-to-server masking
security toolbox
fiddler
wireshark
browser developer tools
zap
summary
chapter 6: error handling and fallbacks
error handling
checking network availability
fallback solutions
javascript polyfills
popular polyfills
browser plugins
summary
chapter 7: going mobile (and tablet, too)
why mobile matters
native mobile app versus mobile website
prerequisites
installing the sdk
testing our existing code in the mobile browser
going native
creating the project
creating the websocket iphone app
what about the ipad?
summary
appendix
resources
online sources
articles
source code
system requirements
stay in touch
index.
Author : Vangos pterneas
Publication : Packt publication
Isbn : 9789351104780
Store book number : 105
NRS 360.00
|
|
|
|
|
|
|
|
|
|